package api

import (
	"github.com/gin-gonic/gin"
	"post/api/handler"
)

func Router(r *gin.Engine) {
	post := r.Group("/post")
	post.POST("postAdd", handler.Add)
	post.GET("postList", handler.List)
	post.GET("postShow", handler.Show)
	post.GET("show", handler.PostShow)
	post.POST("del", handler.Del)
	file := r.Group("/file")
	file.POST("/upload", handler.Upload)
	//review := r.Group("/review")
	//user := r.Group("/user")
}
